#include <QCoreApplication>
#include <QDebug>
#include "oeasykey.h"
#include <stdlib.h>

int main(int argc, char *argv[])
{
    int a = atoi(argv[1]);
    int b = atoi(argv[2]);
    int c = atoi(argv[3]);
    QString key = OeasyKey::generaKey(a, b, c);
    qDebug()<<"key ==:"<<key;
    int face;
    int target;
    int car;
    QByteArray ret = OeasyKey::parseKey(key, face, target, car);
    qDebug()<<"face==:"<<face <<" target==:"<<target <<" car==:"<< car;
}
